#include <stdio.h>


void x()
{
	int *ptr;
	int torf[2][2] = {12, 14, 16};

	ptr = torf[0];
	printf("*ptr = %d\n", *ptr);		// 12
	printf("*(ptr+2) = %d\n", *(ptr+2));	// 16
}

int y()
{
	int *ptr;
	int fort[2][2] = { {12}, {14, 16} };

	ptr = fort[0];
	printf("*ptr = %d\n", *ptr);		// 12
	printf("*(ptr+2) = %d\n", *(ptr+2));	// 14
}

int w()
{
	int (*ptr)[2];
	int torf[2][2] = {12, 14, 16};

	ptr = torf;
	printf("**ptr = %d\n", **ptr);		// 12
	printf("**(ptr+1) = %d\n", **(ptr+1));	// 16
}

int z()
{
	int (*ptr)[2];
	int forf[2][2] = { { 12 }, 14, 16};

	ptr = forf;
	printf("**ptr = %d\n", **ptr);		// 12
	printf("**(ptr+1) = %d\n", **(ptr+1));	// 14
}


int main()
{
	x();
	printf("-------------------------------------\n");
	y();
	printf("-------------------------------------\n");
	w();
	printf("-------------------------------------\n");
	z();
}
